﻿using BCCommon;
using BCDto.TMS.Driver.DriverExamine;

namespace BCService.TMS.Driver.DriverExamine
{
    /// <summary>
    /// 司机考试成绩服务接口
    /// </summary>
    public interface IDriverExamineMarkService
    {
        /// <summary>
        /// 添加司机考试成绩
        /// </summary>
        /// <param name="dto">司机考试成绩模型</param>
        /// <returns></returns>
        long Add(DriverExamineMarkRequestDto dto);
        /// <summary>
        /// 更新司机考试成绩
        /// </summary>
        /// <param name="examineMarkId">司机考试成绩Id</param>
        /// <param name="dto">司机考试成绩模型</param>
        DriverExamineMarkDto Update(long examineMarkId, DriverExamineMarkRequestDto dto);
        /// <summary>
        /// 删除司机考试成绩
        /// </summary>
        /// <param name="examineMarkId">司机考试成绩Id</param>
        void Delete(long examineMarkId);
        /// <summary>
        /// 获取司机考试成绩
        /// </summary>
        /// <param name="examineMarkId">司机考试成绩Id</param>
        /// <returns></returns>
        DriverExamineMarkDto GetById(long examineMarkId);
        /// <summary>
        /// 获取司机考试成绩列表
        /// </summary>
        /// <param name="index">当前页码</param>
        /// <param name="size">当前页大小</param>
        /// <returns></returns>
        PageableList<DriverExamineMarkDto> GetByPaging(int index, int size);
    }
}
